home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1234 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.6 KB  |  43 lines

  1. Newsgroups: comp.lang.eiffel,comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.modula2,comp.lang.modula3,comp.lang.smalltalk
  2. Path: news.sprintlink.net!eskimo!news
  3. From: hgeorge@eskimo.com (Harry George)
  4. Subject: Re: whither style
  5. X-Nntp-Posting-Host: tia1.eskimo.com
  6. Content-Type: Text/Plain; charset=US-ASCII
  7. Message-ID: <DKxv35.Lo2@eskimo.com>
  8. Sender: news@eskimo.com (News User Id)
  9. Organization: <none>
  10. X-Newsreader: WinVN 0.99.7
  11. References: <cmanDK7x13.5KM@netcom.com> <30e26364.2569895@news1.wolfe.net> <60SqRiBF3RB@herold.franken.de>
  12. Mime-Version: 1.0
  13. Date: Wed, 10 Jan 1996 00:09:04 GMT
  14.  
  15. In article <60SqRiBF3RB@herold.franken.de>, jhd@herold.franken.de says...
  16. >
  17. [snip]
  18. >In my experience, such languages actually don't need HN; the compiler will  
  19. >catch all errors that HN is supposed to help avoid. This is because in  
  20. >these languages, the type of a variable or value precisely defines what  
  21. >operations are admitted for it. If you had a type zero-terminated-string  
  22. >in such a language, the compiler won't allow you to pass this to a routine  
  23. >that expects a string with a length descriptor.
  24.  
  25. In general I agree (e.g., for Modula-3).  But if I am doing a binding for a 
  26. library
  27. originally HN-encoded, I'll use the same naming convention.  That makes
  28. it more familiar to the typical programmer who may just be trying
  29. out a "new language".  However, once I get past the initial call,
  30. (e.g., for an object wrapper around those raw facilities), I go back
  31. to non-HN style.
  32.  
  33. [snip]
  34. >
  35. >-Joachim
  36.  
  37. --------------------
  38. Harry George
  39. email: hgeorge@eskimo.com
  40. smail: 22608 90th Ave W / Edmonds WA 98026
  41. quote: <under construction>
  42.  
  43.